import { createStore } from 'vuex';
declare let SessionStorage: any;
const USER='USER';
export const store = createStore({
  state: {
    user:SessionStorage.get(USER)||{}
  },
  getters: {
  },
  mutations: {
    setUser(state,user){
      state.user=user
      SessionStorage.set(USER,user)
    }
  },
  actions: {
  },
  modules: {
  }
});
